package com.mask.im.business.controller;

import com.mask.im.business.model.dto.TransferHistoryMsgDTO;
import com.mask.im.business.common.model.RestResponse;
import com.mask.im.business.service.TransferHistoryService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TransferHistoryController {

	@Autowired
	private TransferHistoryService transferHistoryService;


	@ApiOperation("根据id获取转账信息")
	@GetMapping("users/transferHistory/byId")
	public RestResponse<TransferHistoryMsgDTO> transferHistoryById(@RequestParam("transferId") Integer id){
		return transferHistoryService.transferHistoryById(id);
	}

}
